<?php

// Description：瞬曜电子诚征英才
//
// Copyright 2021 by 瞬曜电子科技（上海）有限公司
// 本软件为使用Lesser General Public License Version 3的免费软件。
// Gitee: https://gitee.com/shunyaocad/new-hire

class PhpExpert
{
    const COMPANY = "SHUNYAOCAD";

    public function __construct(){}

    protected function yearsOfPhpExperience()
    {
        return 'Over 5 Years';
    }

    protected function basicSkillRequirement()
    {
        return ['PHP', 'MySql', 'Nginx', 'PHP Web Framework'];
    }

    protected function bonusSkillRequirement()
    {
        return ['Linux', 'Docker', 'K8s'];
    }

    protected function location()
    {
        return ['Qingdao', 'Home', 'Coffee Shop', 'Bar'];
    }
   
    protected function salary()
    {
        return 'Resonably HIGH Salary';
    }

    protected function contact()
    {
        return 'Please send your resume to : hr@shunyaocad.com';
    }

    public function __toString()
    {
        $desc = 'Hi, we are ' . self::COMPANY . '.';
        if ($this->yearsOfPhpExperience() && $this->basicSkillRequirement() && $this->bonusSkillRequirement() && $this->location() && $this->salary()) {
            $desc .= $this->contact();
        }
        return $desc;
    }
}

$maxNumberOfEmployee = 10;
for ($i = 5; $i <= $maxNumberOfEmployee; $i++) {
    echo new PhpExpert();
}

?>